Skip to content

fixed eslint errors #42#110

Merged
vatsalsinghkv merged 1 commit intovatsalsinghkv:mainfrom
VibhorShukla-BHRT:Vibhor
Oct 2, 2025
Merged

fixed eslint errors #42#110
vatsalsinghkv merged 1 commit intovatsalsinghkv:mainfrom
VibhorShukla-BHRT:Vibhor

Conversation

@VibhorShukla-BHRT
Copy link
Contributor

Fixed #42
Install dependencies: yarn add --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
All the edits were made in mostly .eslintrc file.
Here's what was wrong:

  • Before it was using @babel/eslint-parser, which doesn’t understand TypeScript-specific syntax like the ! ,non-null assertion. That’s why ESLint chokes on the document.getElementById('root')!.

Replaced "parser": "@babel/eslint-parser" --> "parser": "@typescript-eslint/parser",

Some Additional Changes for support:

  • "plugin:@typescript-eslint/recommended" added in "extends"
  • "plugins" updated to "plugins": ["react-refresh", "unused-imports", "vitest", "@typescript-eslint"],

This eliminates the ! error and the server start smoothly!

@vercel
Copy link

vercel bot commented Oct 1, 2025

@VibhorShukla-BHRT is attempting to deploy a commit to the vatsalsinghkv's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
easy-fix Ready Ready Preview Comment Oct 2, 2025 5:57am

@vatsalsinghkv vatsalsinghkv merged commit a7c3077 into vatsalsinghkv:main Oct 2, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Eslint throwing error with tsx

2 participants